#ifndef DIAGRAMVIEWIMP_H
#define DIAGRAMVIEWIMP_H

#include <QtCore/qglobal.h>
#include <QWidget>
#include <QGraphicsView>

#ifdef DIAGRAMVIEW_LIB
#define DIAGRAMVIEW_EXPORT Q_DECL_EXPORT
#else
#define DIAGRAMVIEW_EXPORT	Q_DECL_IMPORT
#endif

class DIAGRAMVIEW_EXPORT DiagramViewImp : public QGraphicsView{
public:
	DiagramViewImp(QWidget* parent) : QGraphicsView(parent){}
	DiagramViewImp(QGraphicsScene* pScene,QWidget* parent) : QGraphicsView(pScene,parent){}

	virtual ~DiagramViewImp(){}

	virtual	void			setDiagramViewIndex(int nIndex) = 0;
	virtual	int				getDiagramViewIndex() = 0;	
	virtual void			loadImageData(const QString& strPath) = 0;
	virtual void			loadImageData(const QByteArray &data) = 0;
};


DIAGRAMVIEW_EXPORT	DiagramViewImp*		createDiagramView(QWidget* parent);

#ifndef DIAGRAMVIEW_LIB
#pragma  comment(lib,"DiagramView.lib")
#endif

#endif
